<include file="./Tpl/Home/Header.html"/>
<link href="/Public/Home/bootstrap.min.css?v=3.4.0" rel="stylesheet">
<script src="/Public/Home/bootstrap.min.js?v=3.4.0"></script>
<!-- jQuery Validation plugin javascript-->
<script src="/Public/js/jquery.validate.min.js"></script>
<script src="/Public/js/messages_zh.min.js"></script>
<script src="/Public/js/base.js"></script>
<style>
	.error{ color:#C00}
	th{ text-align:center}
</style>
<div class="marketArea clear"> <include file="./Tpl/Home/Left.html"/>
  <div class="rightArea">
    <div class="buysellTitle">
      <div class="selecttab1">
        <ul class="selecttab-box1">
          <li class="cur"> <a href="?s=Home/Jishi/index" class="otherBoxTitle">市场</a> </li>
          <li class=""> <a href="?s=Home/Jishi/jiaoyi" class="otherBoxTitle">市场交易</a> </li>
          <li class=""> <a href="?s=Home/Jishi/buylist" class="otherBoxTitle">成交记录</a> </li>
        </ul>
        <input type="hidden" value="0" id="playSymobl">
      </div>
    </div>
    <div class="rightArea3">
      <div class="riskArea"> <span class="icon"></span> <span class="hinttext"> <span class="define">挖矿简介</span> <span> {$art.content} </span> </span> </div>
    </div>
    <div style="margin-top:10px;" class="clear">
      <div class="widthdrawMeal">
        <table width="100%">
          <thead>
            <tr>
              <th width="40" class="center borderRight"></th>
              <th width="250" class="borderRight">虚拟币名称</th>
              <th width="200" class="borderRight">可交易数量</th>
              <th width="200" class="borderRight">已冻结数量</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td style="padding-left:0px;" class="center"><input type="radio" value="1" checked="checked" name="Level" id="1" onclick="javascript:changMeal(this);"></td>
              <td>{$biname}</td>
              <td>G{$xnb}个</td>
              <td>G{$dxnb}个</td>
            </tr>
          </tbody>
        </table>
      </div>
      <div class="payForMeal">
        <form class="form-horizontal m-t" id="signupForm" jump-url="/?s=Home/Jishi" method="post" action="/?s=Home/Jishi/sell">
        <div class="form-group">
                    <label class="col-sm-3 control-label">交易数量：</label>
                    <div class="col-sm-8">
                      <input name="num" class="form-control valid" placeholder="填写交易数量" type="text" aria-required="true" aria-invalid="false" value="">
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-sm-3 control-label">卖出单价：</label>
                    <div class="col-sm-8">
                      <input name="price" class="form-control valid" placeholder="填写出单价" type="text" aria-required="true" aria-invalid="false" value="">
                    </div>
                  </div>
                  <div class="form-group">
                    <label class="col-sm-3 control-label">佣金比率：</label>
                    <div class="col-sm-8">
                      <input  name="shouxufei" class="form-control valid" type="text" aria-required="true" aria-invalid="false" value="{$shouxufei}%" readonly="readonly">
                    </div>
                  </div>
                    <div class="form-group">
                    <label class="col-sm-3 control-label">交易密码：</label>
                    <div class="col-sm-8">
                      <input  name="password" class="form-control valid" placeholder="填写交易密码" type="password" aria-required="true" aria-invalid="false" value="">
                    </div>
                  </div>
               <div class="form-group">
                    <div class="col-sm-3 col-sm-offset-3">
                      <button class="btn  btn-block btn-primary" type="submit" id="submit-btn">提交</button>
                    </div>
                  </div>
          
        </form>
      </div>
      <div id="rechargeCodePags" style="width:780px;" class="entrustTen lasttenorder clear">
        <div class="Tentitle"> <span class="lightblue4">委托卖出记录</span> </div>
        <div class="Tenbody">
          <table width="100%">
            <tbody>
              <tr>
                <th align="center"width="120">委托时间时间</th>
                <th align="center"width="100">单价</th>
                <th align="center"width="100">总数量</th>
                <th align="center"width="100">剩余数量</th>
                <th align="center"width="100">总金额</th>
                <th align="center"width="100">佣金比率</th>
                <th align="center"width="100">佣金金额</th>
                <th align="center"width="100">状态</th>
                <th align="center"width="120">成交时间</th>
                <th align="center"width="120">撤销</th>
              </tr>
              
              <notempty  name='list'>
              	<foreach name='list' item='v'>
                <tr>
                	 <td align="center">{$v.ctime|date='Y-m-d H:i:s',###}</td>
                     <td align="center">{$v.price}</td>
                     <td align="center">{$v.num}</td>
                     <td align="center">{$v.shengyu_num}</td>
                     <td align="center">{$v['num']*$v['price']}</td>
                     <td align="center">{$v.shouxufei}</td>
                     <td align="center">{$v.deal}</td>
                     <td align="center">{$v.statusinfo}</td>
                     <td align="center">{$v.chengjiao_time}</td>
                       <td align="center"><a class="btn btn-outline btn-default deltico btn-sm" href="javascript:void(0);" data-url="{:U('Goods/goods_del')}" onclick="delet({$vo.goods_id},this)"> <span class="bold">撤销</span> </a></td>
                </tr>
                </foreach>
            <else />
              <tr>
                <td align="center" colspan="9">您还没有委托记录</td>
              </tr>
              </notempty>
              
            </tbody>
          </table>
        </div>
        <div class="page">
          <ul>
          </ul>
        </div>
      </div>
    </div>
  </div>
  
</div>
</div>
<script type="text/javascript">

    //显示当前类别样式
    $('#left_main_trance').removeClass().addClass('tradeTitlecur');//一级
    $('#left_main_trance span').removeClass().addClass('trade1cur');
    $('#left_factory').addClass('cur');//二级
</script> 
<script>	
           $("#signupForm").validate({			   
                rules: {
                    num: {
                        required: true,
						number:true,  
                        range: [0,{$xnb}]
                    },
                    price: {
                        required: true,
                        number:true
                    },
					 password: {
                        required: true,
                    }
                },
                messages: {
                    num: {
                        required: "数量不能为空",
						number:"填写的数量必须是数字",
                        range: "数量不能超过{$xnb}"
                    },
                    price: {
                        required: "价格不能为空",
                        number: "输入的价格必须是数字"
                    },
					 password: {
                        required: "密码不能为空",
                    }
                },
				submitHandler:function(form){
					ajax_submit_form(form)
					return false;
				},
				invalidHandler: function() {  //不通过回调 
					  return false; 
				  },
		   
            });
			</script> 
<include file="./Tpl/Home/Footer.html"/> 